package org.starsource.forum.server.dao;

import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.client.exception.LoginLogNotFoundException;
import org.starsource.forum.server.domain.LoginLog;
import org.starsource.forum.server.domain.User;

/**
 * @author james
 *
 */
public interface LoginLogDao {
	public void save(LoginLog loginLog) throws DatabaseException;
	public void update(LoginLog loginLog) throws DatabaseException;
	public void delete(LoginLog loginLog) throws DatabaseException;
	
	public LoginLog getLoginLog(int id) throws LoginLogNotFoundException, DatabaseException;
	
	public LoginLog getLastLoginLog(User user) throws LoginLogNotFoundException, DatabaseException;
}
